package advance.app.dao;

import advance.app.pojo.AppFileInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppFileInfoMapper {

    int saveAppFileInfo(AppFileInfo info);

    int updateAppFileInfo(AppFileInfo info);

    AppFileInfo getLatestInfoByType(@Param("appArea") String area,
                                    @Param("fileType") String fileType);

    AppFileInfo getLatestInfoByMid(Integer id);

    List<String> getAllVerInfoByType(@Param("appArea") String area,
                                     @Param("fileType") String fileType);

    AppFileInfo getByVerAndTypeAndName(@Param("appArea") String area,
                                        @Param("fileType") String fileType,
                                        @Param("fileName") String fileName,
                                        @Param("version") String version);

    List<AppFileInfo> getNewByArea(@Param("appArea") String area,
                                      @Param("fileType") String exWise);
}
